import request from '@/utils/request';

// 查询黑名单列表
export function list(query) {
    return request({
        url: '/system/companyBlacklist/list',
        method: 'get',
        params: query
    });
}

// 查询黑名单详细
export function getDetail(id) {
    return request({
        url: '/system/companyBlacklist/' + id,
        method: 'get'
    });
}

// 新增黑名单
export function add(data) {
    return request({
        url: '/system/companyBlacklist',
        method: 'post',
        data: data
    });
}

// 修改黑名单
export function update(data) {
    return request({
        url: '/system/companyBlacklist',
        method: 'put',
        data: data
    });
}

// 删除黑名单
export function del(id) {
    return request({
        url: '/system/companyBlacklist/' + id,
        method: 'delete'
    });
}
